import i18n from '@/lang'
export const pendingColumns = [
  {
    title: i18n.t('applycontent'),
    dataIndex: 'instanceName',
    key: 'taskName',
    scopedSlots: { customRender: 'taskName' },
    width: 280
  },
  {
    title: i18n.t('businessType'),
    dataIndex: 'businessName',
    key: 'businessName',
    scopedSlots: { customRender: 'businessName' },
    width: 100
  },
  {
    title: i18n.t('withdrawType'),
    dataIndex: 'cancelType',
    key: 'cancelType',
    scopedSlots: { customRender: 'cancelType' },
    width: 100
  },
  {
    title: i18n.t('timeOfCreation'),
    dataIndex: 'createTime',
    key: 'createTime',
    scopedSlots: { customRender: 'createTime' },
    sorter: true,
    width: 190
  },
  {
    title: i18n.t('creator'),
    dataIndex: 'createBy',
    key: 'createBy',
    scopedSlots: { customRender: 'createBy' },
    width: 180
  },
  {
    title: i18n.t('operation'),
    dataIndex: '',
    key: 'operation',
    scopedSlots: { customRender: 'operation' },
    width: 290,
    fixed: 'right'
  }
]
export const doneColumns = [
  {
    title: i18n.t('applycontent'),
    dataIndex: 'instanceName',
    key: 'taskName',
    scopedSlots: { customRender: 'taskName' },
    width: 280
  },
  {
    title: i18n.t('businessType'),
    dataIndex: 'businessName',
    key: 'businessName',
    scopedSlots: { customRender: 'businessName' },
    width: 100
  },
  {
    title: i18n.t('withdrawType'),
    dataIndex: 'cancelType',
    key: 'cancelType',
    scopedSlots: { customRender: 'cancelType' },
    width: 100
  },
  {
    title: i18n.t('processResult'),
    dataIndex: 'taskStatus',
    key: 'taskStatus',
    scopedSlots: { customRender: 'taskStatus' },
    width: 100
  },
  {
    title: i18n.t('processTime'),
    dataIndex: 'auditTime',
    key: 'auditTime',
    scopedSlots: { customRender: 'auditTime' },
    sorter: true,
    width: 180
  },
  {
    title: i18n.t('timeOfCreation'),
    dataIndex: 'createTime',
    key: 'createTime',
    scopedSlots: { customRender: 'createTime' },
    sorter: true,
    width: 180
  },
  {
    title: i18n.t('creator'),
    dataIndex: 'createBy',
    key: 'createBy',
    width: 120
  },
  {
    title: i18n.t('operation'),
    dataIndex: '',
    key: 'operation',
    width: 120,
    fixed: 'right',
    scopedSlots: { customRender: 'operation' }
  }
]
export const canceledColumns = [
  {
    title: i18n.t('applycontent'),
    dataIndex: 'instanceName',
    key: 'taskName',
    width: 280,
    scopedSlots: { customRender: 'taskName' }
  },
  {
    title: i18n.t('businessType'),
    dataIndex: 'businessName',
    key: 'businessName',
    width: 100,
    scopedSlots: { customRender: 'businessName' }
  },
  {
    title: i18n.t('withdrawType'),
    dataIndex: 'cancelType',
    key: 'cancelType',
    width: 100,
    scopedSlots: { customRender: 'cancelType' }
  },
  {
    title: i18n.t('processResult'),
    dataIndex: 'taskStatus',
    key: 'taskStatus',
    width: 100,
    scopedSlots: { customRender: 'taskStatus' }
  },
  {
    title: i18n.t('processTime'),
    dataIndex: 'endTime',
    key: 'endTime',
    width: 190,
    scopedSlots: { customRender: 'endTime' },
    sorter: true
  },
  {
    title: i18n.t('timeOfCreation'),
    dataIndex: 'createTime',
    key: 'createTime',
    width: 190,
    scopedSlots: { customRender: 'createTime' },
    sorter: true
  },
  {
    title: i18n.t('creator'),
    dataIndex: 'createBy',
    key: 'createBy',
    width: 160,
    scopedSlots: { customRender: 'createBy' }
  },
  {
    title: i18n.t('operation'),
    dataIndex: '',
    key: 'operation',
    width: 120,
    scopedSlots: { customRender: 'operation' },
    fixed: 'right'
  }
]
export const reviewProcessColumns = [
  {
    title: i18n.t('nodeCode'),
    dataIndex: 'name1',
    key: 'name1',
    scopedSlots: { customRender: 'name1' }
  },
  {
    title: i18n.t('nodeName'),
    dataIndex: 'name2',
    key: 'name2',
    scopedSlots: { customRender: 'name2' }
  },
  {
    title: i18n.t('approver'),
    dataIndex: 'name3',
    key: 'name3',
    scopedSlots: { customRender: 'name3' }
  },
  {
    title: i18n.t('urgeTimes'),
    dataIndex: 'name4',
    key: 'name4',
    scopedSlots: { customRender: 'name4' }
  },
  {
    title: i18n.t('operationResult'),
    dataIndex: 'name5',
    key: 'name5',
    scopedSlots: { customRender: 'name5' }
  },
  {
    title: i18n.t('attachment'),
    dataIndex: 'name6',
    key: 'name6',
    scopedSlots: { customRender: 'name6' }
  },
  {
    title: i18n.t('verifyTime'),
    dataIndex: 'name7',
    key: 'name7',
    scopedSlots: { customRender: 'name7' }
  },
  {
    title: i18n.t('reviewComments'),
    dataIndex: 'name8',
    key: 'name8',
    scopedSlots: { customRender: 'name8' }
  }
]
export const cancelTypeEnumArr = [{ value: 10, name: i18n.t('force') }, { value: 20, name: i18n.t('nonforce') }]
export const taskStatusEnumArr = [
  { value: 0, name: i18n.t('toBeClaimed') },
  { value: 10, name: i18n.t('pending') },
  { value: 20, name: i18n.t('pass') },
  { value: 30, name: i18n.t('rejected') },
  { value: 40, name: i18n.t('canceled2') },
  { value: 50, name: i18n.t('forwardedTo') },
  { value: 60, name: i18n.t('abolished') }
]
